package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: twer
 * Date: 5/21/13
 * Time: 4:31 PM
 * To change this template use File | Settings | File Templates.
 */
public class Movie {

    private String name;
    private int year;
    private String director;
    private int rating = -1;

    public Movie(String name, int year, String director, int rating) {
        this.name = name;
        this.year = year;
        this.director = director;
        this.rating = rating;
    }

    public Movie(String name, int year, String director) {
        this.name = name;
        this.year = year;
        this.director = director;
    }

    public String toString() {
        return name + "\t" + year + "\t" + director + "\t" + (rating == -1 ? "N/A" : rating);
    }
}
